import { AppUserVO, AppUserDTO, AppUser } from './model/userModel';
import { defHttp } from '/@/utils/http/axios';

enum Api {
  List = '/mate-app/user/list',
  Set = '/mate-app/user/set',
  Del = '/mate-app/user/del',
}

// 菜单树
export const departList = (params?: AppUserVO) => defHttp.get({ url: Api.List, params });

// 保存
export const departSet = (params: AppUser) => defHttp.post<AppUser>({ url: Api.Set, params });

// 删除
export const departDel = (params: { ids: String }) =>
  defHttp.post<boolean>({ url: Api.Del + `?ids=${params.ids}` });
